using System;

namespace Tail
{
	/// <summary>
	/// Summary description for StringVerifier.
	/// </summary>
	public class IntegerVerifier : Verifier
	{
		public IntegerVerifier(String key) : base(key)
		{
		}

		public override bool verify(String val,System.Collections.Hashtable hash){
			bool result = false;
			try
			{
				Int32.Parse(val);
				result = true;
			}
			catch (Exception e){
				result = false;
			}
			if (result)
				hash.Add(key,val);
			return result;
		}
	}
}
